From b99b938b2f33e4d12d63629f3d80e987c31d1892 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 19 Nov 2023 15:47:38 +0000 Subject: Implement basic effect handling in the runtime --- ...Try(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index a70227a9..0429c8c6 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTryTests]/[method:canGenerateCodeForTry(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -3,7 +3,7 @@ Compilation unit elements: ( function-decl "shed__runtime__effects_push_handler" - params=((param "effectTag" int)) + params=((param "effectTag" int) (param "methodCount" int)) return-type=data-ptr ) ( @@ -26,7 +26,7 @@ Locals: Instructions: ( - (call (local "effectHandler__0") "shed__runtime__effects_push_handler" ((int 0))) + (call (local "effectHandler__0") "shed__runtime__effects_push_handler" ((int 0) (int 3))) (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 0) (local "handlerC"))) (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 1) (local "handlerA"))) (call _ "shed__runtime__effects_set_handler_method" ((local "effectHandler__0") (int 2) (local "handlerB"))) -- cgit v1.2.3